package com.zhm.springcloud.service;

import com.zhm.springcloud.entities.CommonResult;
import com.zhm.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * Date： 2021/3/20 21:50
 *
 * @author ZHM
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(666,
                "服务降级返回--- PaymentFallbackService 客户端回调处理"
                ,new Payment(id,"Not Id"));
    }
}
